﻿@model HanGu.Entity.VBemaLecturerInfo
@{
    ViewBag.Title = Model.Title + "——讲坛安排";
    Layout = "~/Views/Shared/Main.cshtml";
    TempData["sidecalss"] = "EveryDayWisdom";
    var BemaCatalog = ViewData["BemaCatalog"] as SelectList;
    var Catalogs = (Model.Catalog ?? "").Split(',');   

}
@section Header
{
    <style>
        .contentLeft
        {
            width: 100%;
        }
        #partContent
        {
            width: 100%;
        }
        .movieContain
        {
            width: 100%;
            margin-top: 5px;
        }
    </style>
}
@section Banner
{
    @Html.Partial("Banner")
}
@section Content{
    <div class="contentLeft">
        <table cellpadding="0" cellspacing="0" id="partContent">
            <tr>
                <td>
                    <div class="ContentTitle">
                        <div class="ContentTitleLeft">
                            <img src="/Content/images/rostrumTitle.gif" width="145" height="26" alt=""></div>
                        <div class="ContentTitleRight">
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="content">
                    <div class="DetailTitle">
                        @Model.Title
                    </div>
                    <div>
                        <div class="DetailTime">
                            讲师：
                            @if (Model != null && !string.IsNullOrEmpty(Model.LecturerID) && !string.IsNullOrEmpty(Model.LecturerName))
                            {
                                string[] lecturerids = Model.LecturerID.Split(',');
                                string[] lecturerNames = Model.LecturerName.Split(',');
                                if (lecturerids != null && lecturerNames != null && lecturerids.Length == lecturerNames.Length)
                                {
                                    for (int i = 0; i < lecturerids.Length; i++)
                                    {
                                <a href="/Lecturers/detail/@lecturerids[i]">@lecturerNames[i]</a>
                                    }
                                }
                            }
                        </div>
                        <div class="DetailTime">
                            时间：<span formatdate="yyyy年MM月dd日">@Model.UpdateTime</span></div>
                        <div class="DetailTime">
                            地点：@Model.PlayAddress</div>
                        <div class="DetailTime">
                            类型：
                            @foreach (var item in Catalogs)
                            {
                                var tempCata = BemaCatalog.SingleOrDefault(c => c.Value == item);
                                if (tempCata != null)
                                {
                                <span style="margin-right: 10px">@tempCata.Text</span>
                                }
                            }
                        </div>
                        <div class="Detail">
                            @MvcHtmlString.Create(Model.Remark)
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}
@section Side{
    @Html.Partial("Side")
}
